package com.ssy.lingxi.message.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.message.api.feign.SystemMessageControllerFeign;
import com.ssy.lingxi.message.api.vo.request.SystemMessageCustomRequest;
import com.ssy.lingxi.message.api.vo.request.SystemMessageRequest;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SystemMessageControllerFeignFallback implements SystemMessageControllerFeign {

    @Override
    public Wrapper<Void> sendSystemMessage(SystemMessageRequest request) {
        return Wrapper.fail(ResponseCode.SERVICE_MESSAGE_ERROR);
    }

    @Override
    public Wrapper<Void> batchSendSystemMessage(List<SystemMessageRequest> request) {
        return Wrapper.fail(ResponseCode.SERVICE_MESSAGE_ERROR);
    }

    @Override
    public Wrapper<Void> sendCustomMessage(SystemMessageCustomRequest request) {
        return Wrapper.fail(ResponseCode.SERVICE_MESSAGE_ERROR);
    }
}
